﻿using System.Linq.Expressions;

namespace EFCORE仓储模式.Contracts
{
    /// <summary>
    /// 基础架构 仓储约束接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IRepositoryBase<T>
    {
        IQueryable<T> FindAll();
        IQueryable<T> FindByCondition(Expression<Func<T, bool>> expression);
        void Create(T entity);
        void Update(T entity);
        void Delete(T entity);
        IQueryable<T> FindAllWithNoTracking();
    }
}
